package com.bbs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bbs.pojo.UserFriendship;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserFriendshipMapper extends BaseMapper<UserFriendship> {
    @Select("SELECT friend_group FROM t_user_friendship WHERE user_id = #{id}")
    List<String> getFriendGroupsByUser(String id);
}
